package day03;

public class 标准练习2 {
    public static void main(String[] args) {
       //1)
        int a=5;
        int b=10;
        int max=a>b?a:b;
        System.out.println(max);
        if(a>b){
            System.out.println(a);
        }else{
            System.out.println(b);
        }
        //2)
        int year=2023;
        if((year %4==0&&year % 100 !=0)||year%400==0){
            System.out.println(year+"是闰年");
        }else{
            System.out.println(year+"是平年");
        }

        //3)
        int score=65;
        if(score>100||score<=0) {
            System.out.println("成绩不合法！");
        }else if(score>=90){
            System.out.println("成绩合格！a");
        }else if(score>=80){
            System.out.println("成绩合格！b");
        } else if (score>=60) {
            System.out.println("成绩合格！c");
        } else if(score<60){
            System.out.println("成绩合格！d");
        }else{
            System.out.println("成绩不合格！");
        }



    }
}
